@putout/eslint-config 11.0.0 → 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 +35 -35
  2. package/package.json +6 -6
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 = {
@@ -22,6 +22,7 @@ export const rules = {
22
22
  },
23
23
  }],
24
24
  'no-delete-var': 'off',
25
+ 'no-prototype-builtins': 'off',
25
26
  'no-unused-labels': 'off',
26
27
  'no-else-return': ['error', {
27
28
  allowElseIf: false,
@@ -50,17 +51,17 @@ export const rules = {
50
51
  'below',
51
52
  ],
52
53
  'lines-around-directive': 'error',
53
- '@stylistic/js/array-bracket-spacing': 'error',
54
- '@stylistic/js/arrow-spacing': 'error',
55
- '@stylistic/js/brace-style': 'error',
56
- '@stylistic/js/comma-dangle': ['error', 'always-multiline'],
57
- '@stylistic/js/comma-spacing': 'error',
58
- '@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': [
59
60
  'error',
60
61
  'always',
61
62
  ],
62
- '@stylistic/js/func-call-spacing': 'error',
63
- '@stylistic/js/operator-linebreak': ['error', 'after', {
63
+ '@stylistic/func-call-spacing': 'error',
64
+ '@stylistic/operator-linebreak': ['error', 'after', {
64
65
  overrides: {
65
66
  '=': 'none',
66
67
  '|': 'before',
@@ -70,52 +71,51 @@ export const rules = {
70
71
  '?': 'before',
71
72
  },
72
73
  }],
73
- '@stylistic/js/function-paren-newline': ['error', 'multiline-arguments'],
74
- '@stylistic/js/key-spacing': 'error',
75
- '@stylistic/js/newline-per-chained-call': 'error',
76
- '@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', {
77
78
  int32Hint: false,
78
79
  }],
79
- '@stylistic/js/indent': [
80
- 'error',
81
- 4,
82
- ],
83
- '@stylistic/js/space-in-parens': 'error',
84
- '@stylistic/js/space-before-blocks': 'error',
85
- '@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', {
86
86
  anonymous: 'never',
87
87
  named: 'never',
88
88
  asyncArrow: 'always',
89
89
  }],
90
- '@stylistic/js/implicit-arrow-linebreak': 'error',
91
- '@stylistic/js/quotes': ['error', 'single', {
90
+ '@stylistic/implicit-arrow-linebreak': 'error',
91
+ '@stylistic/quotes': ['error', 'single', {
92
92
  allowTemplateLiterals: true,
93
93
  }],
94
- '@stylistic/js/quote-props': ['error', 'consistent-as-needed'],
95
- '@stylistic/js/semi': 'error',
96
- '@stylistic/js/no-extra-semi': 'error',
97
- '@stylistic/js/object-curly-spacing': 'error',
98
- '@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', {
99
99
  enforceForSequenceExpressions: false,
100
100
  }],
101
- '@stylistic/js/no-multi-spaces': 'error',
102
- '@stylistic/js/no-trailing-spaces': ['error', {
101
+ '@stylistic/no-multi-spaces': 'error',
102
+ '@stylistic/no-trailing-spaces': ['error', {
103
103
  skipBlankLines: true,
104
104
  }],
105
- '@stylistic/js/no-multiple-empty-lines': ['error', {
105
+ '@stylistic/no-multiple-empty-lines': ['error', {
106
106
  max: 1,
107
107
  maxBOF: 0,
108
108
  }],
109
- '@stylistic/js/lines-between-class-members': 'off',
110
- '@stylistic/js/linebreak-style': [
109
+ '@stylistic/lines-between-class-members': 'off',
110
+ '@stylistic/linebreak-style': [
111
111
  'error',
112
112
  'unix',
113
113
  ],
114
- '@stylistic/js/padded-blocks': [
114
+ '@stylistic/padded-blocks': [
115
115
  'error',
116
116
  'never',
117
117
  ],
118
- '@stylistic/js/padding-line-between-statements': [
118
+ '@stylistic/padding-line-between-statements': [
119
119
  'error',
120
120
  ...getPaddingExport(),
121
121
  ...getPaddingCjsExport(),
@@ -147,7 +147,7 @@ export default [{
147
147
  name: '@putout/eslint-config',
148
148
  rules,
149
149
  plugins: {
150
- '@stylistic/js': stylisticJs,
150
+ '@stylistic': stylistic,
151
151
  },
152
152
  languageOptions: {
153
153
  ecmaVersion: 2025,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/eslint-config",
3
- "version": "11.0.0",
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": {
@@ -38,12 +38,12 @@
38
38
  "eslint-config"
39
39
  ],
40
40
  "devDependencies": {
41
- "@putout/eslint-flat": "^2.0.0",
42
- "@putout/test": "^12.0.0",
41
+ "@putout/eslint-flat": "^3.0.0",
42
+ "@putout/test": "^13.0.0",
43
43
  "c8": "^10.0.0",
44
44
  "eslint-plugin-n": "^17.0.0",
45
- "eslint-plugin-putout": "^25.0.1",
46
- "madrun": "^10.0.0",
45
+ "eslint-plugin-putout": "^26.0.0",
46
+ "madrun": "^11.0.0",
47
47
  "putout": "*"
48
48
  },
49
49
  "license": "MIT",