Skip to content

Commit 338e9ae

Browse files
Migrate to eslint-config-devextreme 1.1.8
1 parent 5a8988f commit 338e9ae

32 files changed

+19911
-14314
lines changed

Angular/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

Angular/.eslintrc.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

Angular/.stylelintrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

Angular/eslint.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import spellCheck from 'eslint-config-devextreme/spellCheck';
2+
import angularConfig from 'eslint-config-devextreme/angular';
3+
import tsParser from '@typescript-eslint/parser';
4+
import path from 'path';
5+
import { fileURLToPath } from 'url';
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
10+
export default [
11+
{
12+
ignores: ['node_modules/**', 'eslint.config.js', 'dist/**', '.angular/**', 'ngcc.config.js', 'stylelint.config.mjs'],
13+
},
14+
...spellCheck,
15+
...angularConfig,
16+
{
17+
files: ['**/*.ts'],
18+
languageOptions: {
19+
parser: tsParser,
20+
parserOptions: {
21+
project: './tsconfig.json',
22+
tsconfigRootDir: __dirname,
23+
ecmaVersion: 6,
24+
},
25+
},
26+
},
27+
];

0 commit comments

Comments
 (0)