Skip to content

Commit c3aaa59

Browse files
Bump eslint from 8.57.0 to 9.0.0 in /scripts in the node-dependencies group (#1956)
* Bump eslint in /scripts in the node-dependencies group Bumps the node-dependencies group in /scripts with 1 update: [eslint](https://github.com/eslint/eslint). Updates `eslint` from 8.57.0 to 9.0.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.57.0...v9.0.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major dependency-group: node-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> * Update to new eslint config format --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rohan Nagar <[email protected]>
1 parent 3b8f0dd commit c3aaa59

File tree

5 files changed

+340
-354
lines changed

5 files changed

+340
-354
lines changed

scripts/.eslintrc.yml

-33
This file was deleted.

scripts/eslint.config.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import js from "@eslint/js";
2+
import stylisticJs from '@stylistic/eslint-plugin-js'
3+
4+
export default [
5+
js.configs.recommended,
6+
{
7+
plugins: {
8+
'@stylistic/js': stylisticJs
9+
},
10+
languageOptions: {
11+
globals: {
12+
__dirname: "readonly",
13+
console: "readonly",
14+
process: "readonly",
15+
require: "readonly",
16+
}
17+
},
18+
rules: {
19+
// Never allow trailing commas on lists
20+
"@stylistic/js/comma-dangle": ["error", "never"],
21+
22+
// Align based on key values
23+
"@stylistic/js/key-spacing": ["error", { "align": "value" }],
24+
25+
// Max line length should be 120
26+
"@stylistic/js/max-len": ["error", { "code": 120 }],
27+
28+
// Allow multiple spaces when declaring requires
29+
"@stylistic/js/no-multi-spaces": ["error", { "exceptions": { "VariableDeclarator": true } }],
30+
31+
// Always force spacing between curly braces
32+
"@stylistic/js/object-curly-spacing": ["error", "always"],
33+
}
34+
}
35+
];

0 commit comments

Comments
 (0)