Skip to content

Commit 996e507

Browse files
Hristo HristovHristo Hristov
authored andcommitted
fix(cli): change eslint config file names
1 parent 6288793 commit 996e507

File tree

8 files changed

+75
-56
lines changed

8 files changed

+75
-56
lines changed
File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"test": "nyc npm run jasmine",
2828
"jasmine": "node spec/jasmine-runner.js",
2929
"coverage": "nyc report --report-dir",
30-
"lint": "eslint -c .eslintrc.mjs ./**/*.ts",
30+
"lint": "eslint -c eslint.config.mjs ./**/*.ts",
3131
"config-schema": "typescript-json-schema packages/core/types/Config.ts Config -o packages/core/config/Config.schema.json"
3232
},
3333
"nyc": {

packages/cli/templates/react/igr-ts/projects/_base/files/__dot__eslintrc.cjs

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import js from '@eslint/js';
2+
import tseslint from '@typescript-eslint/eslint-plugin';
3+
import tsparser from '@typescript-eslint/parser';
4+
import reactRefresh from 'eslint-plugin-react-refresh';
5+
import reactHooks from 'eslint-plugin-react-hooks';
6+
7+
export default [
8+
js.configs.recommended,
9+
tseslint.configs.recommended,
10+
reactHooks.configs.recommended,
11+
{
12+
ignores: ['dist', '.eslintrc.cjs'],
13+
},
14+
{
15+
files: ['**/*.ts', '**/*.tsx'],
16+
languageOptions: {
17+
parser: tsparser,
18+
parserOptions: {
19+
ecmaVersion: 'latest',
20+
sourceType: 'module',
21+
},
22+
},
23+
plugins: {
24+
reactRefresh,
25+
'@typescript-eslint': tseslint,
26+
},
27+
rules: {
28+
'@typescript-eslint/no-unused-vars': [
29+
'error',
30+
{
31+
args: 'all',
32+
argsIgnorePattern: '^_',
33+
caughtErrors: 'all',
34+
caughtErrorsIgnorePattern: '^_',
35+
destructuredArrayIgnorePattern: '^(_|set)',
36+
varsIgnorePattern: '^_',
37+
ignoreRestSiblings: true,
38+
},
39+
],
40+
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
41+
'@typescript-eslint/no-explicit-any': 'off',
42+
},
43+
},
44+
];

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/__dot__eslintrc.json

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import js from '@eslint/js';
2+
import tseslint from '@typescript-eslint/eslint-plugin';
3+
import tsparser from '@typescript-eslint/parser';
4+
5+
export default [
6+
js.configs.recommended,
7+
tseslint.configs.recommended,
8+
{
9+
env: {
10+
browser: true,
11+
es2021: true,
12+
jasmine: true,
13+
},
14+
files: ['**/*.ts', '**/*.tsx'],
15+
languageOptions: {
16+
parser: tsparser,
17+
parserOptions: {
18+
ecmaVersion: 12,
19+
sourceType: 'module',
20+
},
21+
},
22+
plugins: {
23+
'@typescript-eslint': tseslint,
24+
},
25+
rules: {
26+
'@typescript-eslint/no-inferrable-types': 'off',
27+
'@typescript-eslint/no-explicit-any': 'off',
28+
},
29+
},
30+
];

packages/igx-templates/igx-ts-legacy/projects/_base/files/__dot__eslintrc.mjs renamed to packages/igx-templates/igx-ts-legacy/projects/_base/files/eslint.config.mjs

File renamed without changes.

packages/igx-templates/igx-ts/projects/_base/files/__dot__eslintrc.mjs renamed to packages/igx-templates/igx-ts/projects/_base/files/eslint.config.mjs

File renamed without changes.

0 commit comments

Comments
 (0)