@putout/eslint-config 11.0.1 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +34 -35
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import js from '@eslint/js';
2
- import stylisticJs from '@stylistic/eslint-plugin-js';
2
+ import stylistic from '@stylistic/eslint-plugin';
3
3
  import globals from 'globals';
4
4
 
5
5
  export const rules = {
@@ -51,17 +51,17 @@ export const rules = {
51
51
  'below',
52
52
  ],
53
53
  'lines-around-directive': 'error',
54
- '@stylistic/js/array-bracket-spacing': 'error',
55
- '@stylistic/js/arrow-spacing': 'error',
56
- '@stylistic/js/brace-style': 'error',
57
- '@stylistic/js/comma-dangle': ['error', 'always-multiline'],
58
- '@stylistic/js/comma-spacing': 'error',
59
- '@stylistic/js/eol-last': [
54
+ '@stylistic/array-bracket-spacing': 'error',
55
+ '@stylistic/arrow-spacing': 'error',
56
+ '@stylistic/brace-style': 'error',
57
+ '@stylistic/comma-dangle': ['error', 'always-multiline'],
58
+ '@stylistic/comma-spacing': 'error',
59
+ '@stylistic/eol-last': [
60
60
  'error',
61
61
  'always',
62
62
  ],
63
- '@stylistic/js/func-call-spacing': 'error',
64
- '@stylistic/js/operator-linebreak': ['error', 'after', {
63
+ '@stylistic/func-call-spacing': 'error',
64
+ '@stylistic/operator-linebreak': ['error', 'after', {
65
65
  overrides: {
66
66
  '=': 'none',
67
67
  '|': 'before',
@@ -71,52 +71,51 @@ export const rules = {
71
71
  '?': 'before',
72
72
  },
73
73
  }],
74
- '@stylistic/js/function-paren-newline': ['error', 'multiline-arguments'],
75
- '@stylistic/js/key-spacing': 'error',
76
- '@stylistic/js/newline-per-chained-call': 'error',
77
- '@stylistic/js/space-infix-ops': ['error', {
74
+ '@stylistic/function-paren-newline': ['error', 'multiline-arguments'],
75
+ '@stylistic/key-spacing': 'error',
76
+ '@stylistic/newline-per-chained-call': 'error',
77
+ '@stylistic/space-infix-ops': ['error', {
78
78
  int32Hint: false,
79
79
  }],
80
- '@stylistic/js/indent': [
81
- 'error',
82
- 4,
83
- ],
84
- '@stylistic/js/space-in-parens': 'error',
85
- '@stylistic/js/space-before-blocks': 'error',
86
- '@stylistic/js/space-before-function-paren': ['error', {
80
+ '@stylistic/indent': ['error', 4, {
81
+ SwitchCase: 0,
82
+ }],
83
+ '@stylistic/space-in-parens': 'error',
84
+ '@stylistic/space-before-blocks': 'error',
85
+ '@stylistic/space-before-function-paren': ['error', {
87
86
  anonymous: 'never',
88
87
  named: 'never',
89
88
  asyncArrow: 'always',
90
89
  }],
91
- '@stylistic/js/implicit-arrow-linebreak': 'error',
92
- '@stylistic/js/quotes': ['error', 'single', {
90
+ '@stylistic/implicit-arrow-linebreak': 'error',
91
+ '@stylistic/quotes': ['error', 'single', {
93
92
  allowTemplateLiterals: true,
94
93
  }],
95
- '@stylistic/js/quote-props': ['error', 'consistent-as-needed'],
96
- '@stylistic/js/semi': 'error',
97
- '@stylistic/js/no-extra-semi': 'error',
98
- '@stylistic/js/object-curly-spacing': 'error',
99
- '@stylistic/js/no-extra-parens': ['error', 'all', {
94
+ '@stylistic/quote-props': ['error', 'consistent-as-needed'],
95
+ '@stylistic/semi': 'error',
96
+ '@stylistic/no-extra-semi': 'error',
97
+ '@stylistic/object-curly-spacing': 'error',
98
+ '@stylistic/no-extra-parens': ['error', 'all', {
100
99
  enforceForSequenceExpressions: false,
101
100
  }],
102
- '@stylistic/js/no-multi-spaces': 'error',
103
- '@stylistic/js/no-trailing-spaces': ['error', {
101
+ '@stylistic/no-multi-spaces': 'error',
102
+ '@stylistic/no-trailing-spaces': ['error', {
104
103
  skipBlankLines: true,
105
104
  }],
106
- '@stylistic/js/no-multiple-empty-lines': ['error', {
105
+ '@stylistic/no-multiple-empty-lines': ['error', {
107
106
  max: 1,
108
107
  maxBOF: 0,
109
108
  }],
110
- '@stylistic/js/lines-between-class-members': 'off',
111
- '@stylistic/js/linebreak-style': [
109
+ '@stylistic/lines-between-class-members': 'off',
110
+ '@stylistic/linebreak-style': [
112
111
  'error',
113
112
  'unix',
114
113
  ],
115
- '@stylistic/js/padded-blocks': [
114
+ '@stylistic/padded-blocks': [
116
115
  'error',
117
116
  'never',
118
117
  ],
119
- '@stylistic/js/padding-line-between-statements': [
118
+ '@stylistic/padding-line-between-statements': [
120
119
  'error',
121
120
  ...getPaddingExport(),
122
121
  ...getPaddingCjsExport(),
@@ -148,7 +147,7 @@ export default [{
148
147
  name: '@putout/eslint-config',
149
148
  rules,
150
149
  plugins: {
151
- '@stylistic/js': stylisticJs,
150
+ '@stylistic': stylistic,
152
151
  },
153
152
  languageOptions: {
154
153
  ecmaVersion: 2025,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/eslint-config",
3
- "version": "11.0.1",
3
+ "version": "12.0.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout config for ESLint",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@eslint/js": "^9.2.0",
28
- "@stylistic/eslint-plugin-js": "^4.0.1",
28
+ "@stylistic/eslint-plugin": "^4.4.0",
29
29
  "globals": "^16.0.0"
30
30
  },
31
31
  "peerDependencies": {