-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (50 loc) · 1.49 KB
/
.eslintrc.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
env: {
browser: true,
es6: true,
},
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module', // allow for the use of imports
// project: './tsconfig.json',
},
plugins: [
'prettier',
],
extends: [
// 'plugin:import/typescript',
// https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base
'airbnb-base',
// https://github.com/typescript-eslint/typescript-eslint/blob/ecc96318f47d821c19513652f262b47b15fd8257/packages/eslint-plugin/src/configs/recommended.json
'plugin:@typescript-eslint/recommended',
// https://prettier.io/docs/en/integrating-with-linters.html
'prettier',
'prettier/@typescript-eslint', // disable ESLint rules that would conflict with prettier.
],
settings: {
'import/resolver': {
node: {
paths: [ 'src' ],
extensions: [ '.js', '.ts', 'd.ts' ],
}
}
},
rules: {
'prettier/prettier': 'error',
'lines-between-class-members': 'off',
'no-useless-constructor': 'off',
'no-unused-expressions': 'warn',
'no-param-reassign': 'warn',
'no-empty-function': 'off',
'class-methods-use-this': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
},
};