Skip to content

Commit ffa9bad

Browse files
committed
cleanup eslintrc file
1 parent 04ed507 commit ffa9bad

File tree

1 file changed

+16
-82
lines changed

1 file changed

+16
-82
lines changed

.eslintrc.js

Lines changed: 16 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -14,97 +14,31 @@ module.exports = {
1414
'no-mixed-operators': ['off'],
1515
'no-trailing-spaces': 'off',
1616
'operator-linebreak': 'off',
17-
'max-len': ['warn', {code: 120, "ignoreComments": true, "ignoreStrings": true}],
17+
'max-len': ['warn', {code: 120, ignoreComments: true, ignoreStrings: true}],
1818
'react/jsx-no-bind': [
1919
'off',
2020
{
2121
ignoreRefs: true,
2222
allowArrowFunctions: false,
23-
allowBind: false,
24-
},
23+
allowBind: false
24+
}
2525
],
2626
'function-paren-newline': ['warn', 'never'],
2727
'new-cap': ['off'], // TODO: fix this in colors.js and remove this
2828
'default-case': ['off'],
29-
"@typescript-eslint/no-use-before-define": 0,
30-
"@typescript-eslint/explicit-function-return-type": 0,
31-
"@typescript-eslint/no-var-requires": 0,
32-
"@typescript-eslint/no-explicit-any": 0,
33-
"@typescript-eslint/member-delimiter-style": 0,
34-
"@typescript-eslint/no-unused-vars": [2, {"args": "all", "argsIgnorePattern": "^_"}],
29+
'@typescript-eslint/no-use-before-define': 0,
30+
'@typescript-eslint/explicit-function-return-type': 0,
31+
'@typescript-eslint/no-var-requires': 0,
32+
'@typescript-eslint/no-explicit-any': 0,
33+
'@typescript-eslint/member-delimiter-style': 0,
34+
'@typescript-eslint/no-unused-vars': [2, {args: 'all', argsIgnorePattern: '^_'}],
3535
// "@typescript-eslint/no-unused-vars": 0, //todo: uncomment this line and use the the better unused rule above ^
36-
"@typescript-eslint/no-non-null-assertion": 0,
37-
"@typescript-eslint/explicit-member-accessibility": 0,
38-
"@typescript-eslint/prefer-optional-chain": "error",
39-
"@typescript-eslint/ban-ts-ignore": 0,
40-
"@typescript-eslint/no-empty-function": 0,
41-
"@typescript-eslint/camelcase": 0,
42-
"@typescript-eslint/indent": 0
36+
'@typescript-eslint/no-non-null-assertion': 0,
37+
'@typescript-eslint/explicit-member-accessibility': 0,
38+
'@typescript-eslint/prefer-optional-chain': 'error',
39+
'@typescript-eslint/ban-ts-ignore': 0,
40+
'@typescript-eslint/no-empty-function': 0,
41+
'@typescript-eslint/camelcase': 0,
42+
'@typescript-eslint/indent': 0
4343
}
4444
};
45-
46-
// OLD ESlint configuration
47-
// const validColors = require('./src/style/colorsPalette').colorsPalette;
48-
// const extraFixColorsMap = require('./src/style/colorsPalette').extraFixColorsMap;
49-
// const assetsDepJson = require('./eslint-rules/tests/assets_deprecation.json');
50-
// const deprecationsJson = require('./eslint-rules/tests/component_deprecation.json');
51-
52-
// module.exports = {
53-
// parser: 'babel-eslint',
54-
// extends: 'wix/react-native',
55-
// // plugins: ['react', 'react-native', 'uilib'],
56-
// // extends: ['airbnb'],
57-
// rules: {
58-
// 'arrow-body-style': 'off',
59-
// 'arrow-parens': 'off',
60-
// // TODO: remove after migration of legacy lifecycle methods
61-
// 'camelcase': 'off',
62-
// 'class-methods-use-this': 'off',
63-
// 'consistent-return': 'off',
64-
// 'comma-dangle': 'off',
65-
// 'global-require': 'off',
66-
// 'max-len': [2, 130, 4, {ignoreUrls: true}],
67-
// 'no-nested-ternary': 'off',
68-
// 'no-else-return': 'off',
69-
// 'no-mixed-operators': ['off'],
70-
// 'no-param-reassign': ['warn'],
71-
// 'no-plusplus': 'off',
72-
// 'no-return-assign': 'off',
73-
// 'no-trailing-spaces': 'off',
74-
// 'no-use-before-define': 'off',
75-
// 'no-unneeded-ternary': 'off',
76-
// 'no-mixed-operators': 'off',
77-
// 'no-underscore-dangle': ['error', {'allowAfterThis': true}],
78-
// 'object-curly-spacing': 'off',
79-
// 'operator-linebreak': 'off',
80-
// 'react/forbid-prop-types': 'off',
81-
// 'react/jsx-filename-extension': 'off',
82-
// 'react/jsx-space-before-closing': 'off',
83-
// 'react/jsx-tag-spacing': 'off',
84-
// 'react/prefer-stateless-function': 'off',
85-
// 'react/prop-types': ['error', {ignore: ['children', 'style', 'testID']}],
86-
// 'react/require-default-props': 'off',
87-
// "react/sort-comp": ['warn'],
88-
// 'react/jsx-no-bind': [
89-
// 'warn',
90-
// {
91-
// ignoreRefs: true,
92-
// allowArrowFunctions: false,
93-
// allowBind: false,
94-
// },
95-
// ],
96-
// 'import/prefer-default-export': 'off'
97-
// },
98-
// env: {
99-
// browser: true,
100-
// node: true,
101-
// jest: true,
102-
// },
103-
// settings: {
104-
// 'import/resolver': {
105-
// node: {
106-
// extensions: ['.js', '.ios.js', '.android.js'],
107-
// },
108-
// },
109-
// },
110-
// };

0 commit comments

Comments
 (0)