-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (33 loc) · 1 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
const OFF = 0;
const WARN = 1;
module.exports = {
root: true,
env: { browser: true, commonjs: true, es6: true, node: true },
settings: {
'import/ignore': ['node_modules'],
node: { extensions: ['.js', '.jsx', '.ts', '.tsx'] },
react: { pragma: 'React', version: '17.0.1', createClass: 'createReactClass' },
},
globals: { document: true, window: true, process: true },
parserOptions: {
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
ecmaVersion: 2018,
ecmaFeatures: {
jsx: true,
impliedStrict: true,
legacyDecorators: true,
experimentalObjectRestSpread: true,
},
warnOnUnsupportedTypeScriptVersion: true,
projectFolderIgnoreList: ['dist', '**/node_modules/**'],
},
extends: ['jarvis'],
rules: {
'@typescript-eslint/no-unsafe-assignment': WARN,
'@typescript-eslint/no-misused-promises': OFF,
'jsx-a11y/click-events-have-key-events': OFF,
'jsx-a11y/no-static-element-interactions': OFF,
},
};