Skip to content

Commit

Permalink
Create ESLint flat config setup
Browse files Browse the repository at this point in the history
  • Loading branch information
leroykorterink committed Nov 6, 2024
1 parent 5bc1633 commit a6bd899
Show file tree
Hide file tree
Showing 44 changed files with 2,342 additions and 10,820 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh

npx lint-staged
npm run eslint
npm run build
npx eslint
12 changes: 0 additions & 12 deletions .vscode/settings.json

This file was deleted.

19 changes: 19 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { configs } from './src/index.js';

/**
* @type {import('eslint').Linter.Config}
*/
export default [
{
ignores: ['src/index.js'],
},
...configs.typescriptReact,
{
name: 'local configuration',
languageOptions: {
parserOptions: {
projectService: true,
},
},
},
];
Loading

0 comments on commit a6bd899

Please sign in to comment.