-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
32 lines (32 loc) · 974 Bytes
/
.eslintrc.js
File metadata and controls
32 lines (32 loc) · 974 Bytes
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
module.exports = {
env: {
es6: true,
node: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['prettier', 'module-resolver'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
},
rules: {
'prettier/prettier': ['error', {}, { usePrettierrc: true }], // Use our .prettierrc file as source
'class-methods-use-this': 'off',
'no-param-reassign': 'off',
'func-names': 'off', // allow unamed function expressions
'no-unused-vars': ['error', { argsIgnorePattern: 'next' }],
'no-plusplus': [2, { allowForLoopAfterthoughts: true }], // allow ++ or -- on for loop
},
settings: {
'import/resolver': {
alias: {
map: [['~', './src']],
extensions: ['.ts', '.js', '.jsx', '.json'],
},
},
},
};