Tidy up.
This commit is contained in:
@@ -17,7 +17,7 @@ jobs:
|
||||
eslint-smoke:
|
||||
runs-on: arc-linux-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
env:
|
||||
RUSTUP_PERMIT_COPY_RENAME: 1
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- uses: rlespinasse/github-slug-action@v3.x
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
|
||||
@@ -7,6 +7,8 @@ module.exports = [
|
||||
typedGlobs: ['**/*.ts', '**/*.tsx'],
|
||||
}),
|
||||
{
|
||||
// .storybook excluded: those .js files use JSX/optional-chaining without a matching parser.
|
||||
// Follow-up: add a Storybook-scoped ESLint slice (parser + plugin:storybook/recommended).
|
||||
ignores: ['tsconfig.json', '**/*.d.ts', '.storybook/**', 'dist/**', 'node_modules/**', '*.config.js'],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -23,7 +23,6 @@ module.exports = [
|
||||
},
|
||||
ecmaVersion: 2019,
|
||||
sourceType: 'module',
|
||||
project: './tsconfig.json',
|
||||
},
|
||||
globals: {
|
||||
Atomics: 'readonly',
|
||||
@@ -40,7 +39,7 @@ module.exports = [
|
||||
],
|
||||
rules: {
|
||||
'jest/prefer-strict-equal': 'error',
|
||||
'jest/prefer-to-have-length': 'warn',
|
||||
'jest/prefer-to-have-length': 'error',
|
||||
'prettier/prettier': 'error',
|
||||
'import/prefer-default-export': 'off',
|
||||
'react/prop-types': 'off',
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
"version": "1.0.0",
|
||||
"license": "Apache-2.0",
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
".": "./index.js",
|
||||
"./airbnb-typescript-base-flat": "./airbnb-typescript-base-flat.js"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": ">= 8",
|
||||
"@typescript-eslint/parser": ">= 8",
|
||||
|
||||
Reference in New Issue
Block a user