forked from Project-OSRM/osrm-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
32 lines (30 loc) · 812 Bytes
/
eslint.config.js
File metadata and controls
32 lines (30 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { Linter } from 'eslint';
/** @type {Linter.Config} */
const config = [
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: 2024,
sourceType: "module",
globals: {
es6: true,
node: true,
},
},
rules: {
indent: ['error', 2],
quotes: ['warn', 'single'],
'linebreak-style': ['error', 'unix'],
semi: ['error', 'always'],
'no-console': ['warn'],
'prefer-const': 'error',
'no-var': 'error',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'object-shorthand': 'error',
'prefer-template': 'error',
'prefer-arrow-callback': 'error',
},
ignores: ['node_modules/', 'build/', 'dist/', 'coverage/', 'features/support/fbresult_generated.js'],
},
];
export default config;