Skip to content

Commit 3ae875b

Browse files
committed
style: move stylistic rules to @stylistic
1 parent 5455c93 commit 3ae875b

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

lib/basic.mjs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@ const config = [
1212
{
1313
name: '@textshq/eslint-config.basic',
1414
rules: {
15-
semi: ['error', 'never'],
15+
// NOTE: Stylistic rules such as `semi` and `arrow-parens` have been
16+
// deprecated in mainline ESLint and now live in ESLint Stylistic
17+
// (https://eslint.style/) instead. This is configured in style.mjs.
1618
'no-constant-binary-expression': 'error',
17-
'arrow-parens': ['error', 'as-needed'],
1819
'no-param-reassign': 'warn',
1920
'import/no-webpack-loader-syntax': 'off',
2021
'import/prefer-default-export': 'off',
2122
camelcase: 'off',
2223
'consistent-return': 'off',
23-
'implicit-arrow-linebreak': 'off',
2424
'max-classes-per-file': 'off',
25-
'max-len': 'off',
26-
'newline-per-chained-call': 'off',
2725
'no-alert': 'off',
2826
'no-await-in-loop': 'off',
2927
'no-bitwise': 'off',
@@ -34,7 +32,6 @@ const config = [
3432
'no-plusplus': 'off',
3533
'no-restricted-syntax': 'off',
3634
'no-underscore-dangle': 'off',
37-
'object-curly-newline': 'off',
3835
'prefer-template': 'off',
3936
},
4037
},

lib/style.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ const config = [
2626
{
2727
name: '@textshq/eslint-config.stylistic',
2828
rules: {
29+
'@stylistic/semi': ['error', 'never'],
30+
'@stylistic/arrow-parens': ['error', 'as-needed'],
31+
'@stylistic/implicit-arrow-linebreak': 'off',
32+
'@stylistic/max-len': 'off',
33+
'@stylistic/newline-per-chained-call': 'off',
34+
'@stylistic/object-curly-newline': 'off',
2935
'@stylistic/member-delimiter-style': ['error', {
3036
multiline: { delimiter: 'none' },
3137
singleline: { delimiter: 'comma' },

0 commit comments

Comments
 (0)