forked from Expensify/eslint-config-expensify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (28 loc) · 806 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const path = require('path');
const rulesDirPlugin = require('eslint-plugin-rulesdir');
rulesDirPlugin.RULES_DIR = path.resolve(__dirname, 'eslint-plugin-expensify');
module.exports = {
plugins: ['@lwc/eslint-plugin-lwc', 'eslint-plugin-es', 'rulesdir'],
extends: [
'airbnb',
require.resolve('./rules/style'),
require.resolve('./rules/es6'),
require.resolve('./rules/react'),
require.resolve('./rules/expensify'),
],
env: {
browser: true,
es6: true,
jquery: true,
node: true,
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
generators: true,
objectLiteralDuplicateProperties: true,
},
},
};