forked from zbycz/osmapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
38 lines (35 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
35
36
37
38
/* eslint-disable @typescript-eslint/no-unused-vars */
const OFF = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
// parser: 'babel-eslint',
parserOptions: {
project: './tsconfig.json',
// ecmaVersion: 7,
// sourceType: 'module',
// ecmaFeatures: {
// jsx: false,
// experimentalObjectRestSpread: true,
// },
},
root: true, // stop ESLint from looking for a configuration file in parent folders
env: {
es6: true,
jest: true,
node: true,
},
extends: ['airbnb-typescript', 'prettier'],
rules: {
'react/prop-types': OFF,
'react/jsx-no-target-blank': OFF,
'import/prefer-default-export': OFF,
// 'import/no-default-export': ERROR,
'jsx-a11y/label-has-associated-control': OFF, // checkbox in <label> was reported
// "@typescript-eslint/no-unused-vars": OFF,
// "@typescript-eslint/no-unused-vars-experimental": ERROR,
'react/require-default-props': OFF,
'no-nested-ternary': OFF,
'no-irregular-whitespace': OFF,
},
};