forked from canonical/ubuntu.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
51 lines (51 loc) · 1.17 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
51
module.exports = {
env: {
node: true,
browser: true,
es6: true,
jest: true,
},
extends: [
"eslint:recommended",
"eslint-config-prettier",
"plugin:cypress/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
dataLayer: "readonly",
d3: "readonly",
topojson: "readonly",
ga: "readonly",
grecaptcha: "readonly",
serialize: "readonly",
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
requireConfigFile: false,
babelOptions: {
plugins: ["@babel/plugin-syntax-jsx", "@typescript-eslint"],
presets: ["@babel/preset-react"],
},
},
rules: {
semi: ["error", "always"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-var-requires": "off",
"no-prototype-builtins": "off",
},
overrides: [
{
files: ["**/*.tsx"],
rules: {
"react/prop-types": "off",
},
},
],
};