11{
22 "extends": [
3- "typescript",
4- "airbnb",
5- "prettier",
6- "prettier/react",
7- "prettier/standard"
8- ],
9- "plugins": [
10- "prettier",
11- "react"
3+ "ringcentral-typescript"
124 ],
135 "rules": {
14- "camelcase": 0,
15- "class-methods-use-this": 0,
16- "dot-notation": 0,
17- // foo['bar'] for private
18- "global-require": 0,
19- "indent": 0,
20- "import/extensions": [
21- ".js",
22- ".jsx",
23- ".json",
24- ".ts",
25- ".tsx"
26- ],
27- "import/no-extraneous-dependencies": 0,
28- "import/no-named-as-default": 0,
29- "import/prefer-default-export": 0,
30- "jsx-a11y/anchor-is-valid": 0,
31- "jsx-a11y/click-events-have-key-events": 0,
32- "jsx-a11y/label-has-for": 0,
33- "jsx-a11y/no-static-element-interactions": 0,
34- "max-len": 0,
35- "no-alert": 0,
36- "no-bitwise": 0,
37- "no-console": 0,
38- "no-class-assign": 0,
39- "no-mixed-operators": 0,
40- "no-nested-ternary": 0,
41- "no-param-reassign": 0,
42- "no-plusplus": 0,
43- "no-return-assign": 0,
44- "no-shadow": 0,
45- "no-underscore-dangle": 0,
46- "no-unused-vars": 0,
47- "no-unused-expressions": 0,
48- // tests
49- "no-undef": 0,
50- //FIXME @see https://github.com/eslint/typescript-eslint-parser/issues/75
51- "react/forbid-prop-types": 0,
52- "react/jsx-filename-extension": 0,
53- "react/no-array-index-key": 0,
54- "react/no-multi-comp": 0,
55- "react/no-unescaped-entities": 0,
56- "react/no-unused-prop-types": 0,
57- "react/no-unused-state": 0,
58- "react/prop-types": 0,
59- "react/require-default-props": 0,
60- "spaced-comment": 0,
61- "prettier/prettier": "error",
62- "typescript/explicit-function-return-type": 0,
63- "typescript/explicit-member-accessibility": 0,
64- "typescript/member-ordering": 0,
65- "typescript/no-var-requires": 0
66- // conditional require in Externals
6+ "import/no-unresolved": "off", // to capture direct deps in TS
7+ "jsx-a11y/anchor-is-valid": "off", // Next.js use <a>
8+ "no-console": "off",
9+ "no-undef": "off", //FIXME @see https://github.com/eslint/typescript-eslint-parser/issues/75
10+ "no-unused-expressions": "off", // tests
11+ "react/sort-comp": "off",
12+ "react/prop-types": "off",
13+ "@typescript-eslint/no-unused-vars": "off",
14+ "@typescript-eslint/explicit-function-return-type": "off",
15+ "@typescript-eslint/no-explicit-any": "off",
16+ "@typescript-eslint/no-var-requires": "off"
6717 },
6818 "env": {
6919 "browser": true,
7020 "mocha": true,
7121 "node": true
7222 },
7323 "settings": {
74- "import/resolver": {
75- "node": {
76- "extensions": [
77- ".js",
78- ".jsx",
79- ".ts",
80- ".tsx"
81- ]
82- }
24+ "react": {
25+ "version": "16.6.0"
8326 }
84- },
85- "globals": { // jest-puppeteer
86- "page": true,
87- "browser": true,
88- "context": true,
89- "jestPuppeteer": true
9027 }
9128}
0 commit comments