Skip to content

Commit 0323203

Browse files
Bump eslint from 8.57.1 to 10.2.0 (#326)
* Bump eslint from 8.57.1 to 10.2.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.1 to 10.2.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v8.57.1...v10.2.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.2.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Migrate ESLint config to flat config format for v10 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dennis Luxen <ich@dennisluxen.de>
1 parent aa58ed9 commit 0323203

4 files changed

Lines changed: 472 additions & 473 deletions

File tree

eslint.config.js

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
const js = require('@eslint/js');
2+
3+
module.exports = [
4+
{
5+
ignores: ['node_modules/**', 'eslint.config.js'],
6+
},
7+
{
8+
files: ['**/*.js'],
9+
languageOptions: {
10+
ecmaVersion: 2019,
11+
sourceType: 'module',
12+
globals: {
13+
console: 'readonly',
14+
process: 'readonly',
15+
Buffer: 'readonly',
16+
__dirname: 'readonly',
17+
__filename: 'readonly',
18+
exports: 'writable',
19+
global: 'readonly',
20+
module: 'writable',
21+
require: 'readonly',
22+
fetch: 'readonly',
23+
},
24+
},
25+
rules: {
26+
...js.configs.recommended.rules,
27+
'accessor-pairs': 'error',
28+
'array-bracket-spacing': 'off',
29+
'array-callback-return': 'error',
30+
'arrow-body-style': 'error',
31+
'arrow-parens': 'error',
32+
'arrow-spacing': 'error',
33+
'block-scoped-var': 'error',
34+
'block-spacing': ['error', 'always'],
35+
'brace-style': ['error', '1tbs', {allowSingleLine: true}],
36+
'callback-return': 'error',
37+
camelcase: 'error',
38+
'class-methods-use-this': 'error',
39+
'comma-dangle': 'error',
40+
'comma-spacing': ['error', {after: true, before: false}],
41+
'comma-style': 'error',
42+
complexity: 'off',
43+
'computed-property-spacing': ['error', 'never'],
44+
'consistent-return': 'error',
45+
'consistent-this': 'error',
46+
curly: 'off',
47+
'default-case': 'error',
48+
'dot-location': ['error', 'property'],
49+
'dot-notation': 'error',
50+
'eol-last': 'error',
51+
eqeqeq: 'error',
52+
'func-call-spacing': 'error',
53+
'func-names': ['error', 'never'],
54+
'generator-star-spacing': 'error',
55+
'guard-for-in': 'error',
56+
'handle-callback-err': 'error',
57+
'id-blacklist': 'error',
58+
'id-match': 'error',
59+
indent: 'error',
60+
'init-declarations': 'off',
61+
'jsx-quotes': 'error',
62+
'key-spacing': 'error',
63+
'keyword-spacing': ['error', {after: true, before: true}],
64+
'linebreak-style': ['error', 'unix'],
65+
'lines-around-comment': 'error',
66+
'max-depth': 'error',
67+
'max-len': 'off',
68+
'max-lines': 'off',
69+
'max-nested-callbacks': 'error',
70+
'max-params': ['error', {max: 4}],
71+
'max-statements': 'off',
72+
'max-statements-per-line': 'off',
73+
'multiline-ternary': 'off',
74+
'new-cap': 'error',
75+
'new-parens': 'error',
76+
'newline-after-var': 'off',
77+
'newline-before-return': 'error',
78+
'newline-per-chained-call': 'error',
79+
'no-alert': 'error',
80+
'no-array-constructor': 'error',
81+
'no-bitwise': 'error',
82+
'no-caller': 'error',
83+
'no-catch-shadow': 'error',
84+
'no-confusing-arrow': 'error',
85+
'no-continue': 'error',
86+
'no-div-regex': 'error',
87+
'no-duplicate-imports': 'error',
88+
'no-else-return': 'off',
89+
'no-empty-function': 'error',
90+
'no-eq-null': 'error',
91+
'no-eval': 'error',
92+
'no-extend-native': 'error',
93+
'no-extra-bind': 'error',
94+
'no-extra-label': 'error',
95+
'no-extra-parens': 'error',
96+
'no-floating-decimal': 'error',
97+
'no-global-assign': 'error',
98+
'no-implicit-coercion': 'error',
99+
'no-implicit-globals': 'off',
100+
'no-implied-eval': 'error',
101+
'no-inline-comments': 'off',
102+
'no-invalid-this': 'error',
103+
'no-iterator': 'error',
104+
'no-label-var': 'error',
105+
'no-labels': 'error',
106+
'no-lone-blocks': 'error',
107+
'no-lonely-if': 'error',
108+
'no-loop-func': 'error',
109+
'no-mixed-operators': 'error',
110+
'no-mixed-requires': 'error',
111+
'no-multi-spaces': 'off',
112+
'no-multi-str': 'error',
113+
'no-negated-condition': 'error',
114+
'no-nested-ternary': 'error',
115+
'no-new': 'error',
116+
'no-new-func': 'error',
117+
'no-new-object': 'error',
118+
'no-new-require': 'error',
119+
'no-new-wrappers': 'error',
120+
'no-octal-escape': 'error',
121+
'no-param-reassign': 'error',
122+
'no-path-concat': 'error',
123+
'no-plusplus': 'error',
124+
'no-process-exit': 'error',
125+
'no-proto': 'error',
126+
'no-prototype-builtins': 'error',
127+
'no-restricted-globals': 'error',
128+
'no-restricted-imports': 'error',
129+
'no-restricted-modules': 'error',
130+
'no-restricted-syntax': 'error',
131+
'no-return-assign': 'error',
132+
'no-script-url': 'error',
133+
'no-self-compare': 'error',
134+
'no-sequences': 'error',
135+
'no-shadow-restricted-names': 'error',
136+
'no-spaced-func': 'error',
137+
'no-tabs': 'error',
138+
'no-template-curly-in-string': 'error',
139+
'no-ternary': 'off',
140+
'no-throw-literal': 'off',
141+
'no-trailing-spaces': 'error',
142+
'no-undef-init': 'error',
143+
'no-undefined': 'error',
144+
'no-underscore-dangle': 'error',
145+
'no-unmodified-loop-condition': 'error',
146+
'no-unneeded-ternary': 'error',
147+
'no-unsafe-negation': 'error',
148+
'no-unused-expressions': 'error',
149+
'no-use-before-define': 'error',
150+
'no-useless-call': 'error',
151+
'no-useless-computed-key': 'error',
152+
'no-useless-concat': 'error',
153+
'no-useless-constructor': 'error',
154+
'no-useless-escape': 'error',
155+
'no-useless-rename': 'error',
156+
'no-var': 'off',
157+
'no-void': 'error',
158+
'no-warning-comments': 'off',
159+
'no-whitespace-before-property': 'error',
160+
'no-with': 'error',
161+
'object-curly-spacing': 'error',
162+
'object-property-newline': 'error',
163+
'object-shorthand': 'off',
164+
'one-var': 'off',
165+
'one-var-declaration-per-line': 'error',
166+
'operator-assignment': 'error',
167+
'operator-linebreak': 'error',
168+
'padded-blocks': 'off',
169+
'prefer-reflect': 'error',
170+
'prefer-rest-params': 'error',
171+
'prefer-spread': 'error',
172+
'quote-props': 'off',
173+
quotes: ['error', 'single'],
174+
radix: 'error',
175+
'rest-spread-spacing': 'error',
176+
semi: 'error',
177+
'semi-spacing': 'error',
178+
'sort-imports': 'error',
179+
'sort-vars': 'error',
180+
'space-before-blocks': 'error',
181+
'space-before-function-paren': 'off',
182+
'space-in-parens': ['error', 'never'],
183+
'space-infix-ops': 'error',
184+
'space-unary-ops': 'error',
185+
'spaced-comment': ['error', 'always'],
186+
strict: ['error', 'never'],
187+
'symbol-description': 'error',
188+
'template-curly-spacing': 'error',
189+
'unicode-bom': ['error', 'never'],
190+
'vars-on-top': 'off',
191+
'wrap-iife': 'error',
192+
'wrap-regex': 'error',
193+
'yield-star-spacing': 'error',
194+
yoda: ['error', 'never']
195+
}
196+
}
197+
];

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ module.exports = function(version) {
137137

138138
if (!instructions[language][version][type]) {
139139
// Log for debugging
140-
console.log('Encountered unknown instruction type: ' + type); // eslint-disable-line no-console
140+
console.log('Encountered unknown instruction type: ' + type);
141141
// OSRM specification assumes turn types can be added without
142142
// major version changes. Unknown types are to be treated as
143143
// type `turn` by clients

0 commit comments

Comments
 (0)