-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathindex.js
32 lines (30 loc) · 890 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
31
32
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'),
'plugin:react-hooks/recommended',
require.resolve('./rules/expensify'),
],
env: {
browser: true,
es6: true,
jquery: true,
node: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
generators: true,
objectLiteralDuplicateProperties: true,
},
},
};