Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brettz9 eslint9 #35

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

28 changes: 0 additions & 28 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm ci --legacy-peer-deps
- run: npm run lint
- run: npm run test
- run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm ci --legacy-peer-deps
- run: npm run lint
- run: npm run test
- run: npm run build
Expand Down
50 changes: 50 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// import auto from 'eslint-config-canonical/configurations/auto.js';
import eslintPluginCanonical from './dist/src/index.js';

export default [
{
ignores: [
'package-lock.json',
'**/ExportMap.ts',
'tests/fixtures',

'coverage',
'dist',
'node_modules',
'pnpm-lock.yaml',
'*.log',
'.*',
'!.github',
'!.gitignore',
'!.husky',
'!.releaserc',
],
},
eslintPluginCanonical.configs['flat/recommended'],
// ...auto,
];

/*
'overrides': [
{
'extends': [
'canonical',
'canonical/node',
'canonical/typescript',
'canonical/typescript-disable-type-checking',
'canonical/prettier'
],
'rules': {
'unicorn/expiring-todo-comments': 0,
'@typescript-eslint/no-for-in-array': 0
},
'files': '*.ts'
},
{
'extends': [
'canonical/json'
],
files: ['*.json']
}
]
*/
Loading
Loading