Skip to content

Commit

Permalink
chore(update-configs): eslint.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
veritem committed Apr 8, 2024
1 parent 4a379a6 commit cd20356
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// @ts-check

import eslint from '@eslint/js'
import eslintPlugin from 'eslint-plugin-eslint-plugin'
import nodePlugin from 'eslint-plugin-n'
import stylistic from '@stylistic/eslint-plugin'
import tseslint from 'typescript-eslint'
import babelParser from '@babel/eslint-parser'

export default [
{
languageOptions: {
parser: babelParser,
parserOptions: {
requireConfigFile: false,
sourceType: 'module',
babelOptions: {
babelrc: false,
configFile: false,
presets: ['@babel/preset-env'],
},
},
},
},
...tseslint.config(eslint.configs.recommended,
...tseslint.configs.recommended),
eslintPlugin.configs['flat/recommended'],
nodePlugin.configs['flat/recommended-script'],
stylistic.configs.customize({
quotes: 'single',
semi: false,
commaDangle: 'always-multiline',
}),
]

0 comments on commit cd20356

Please sign in to comment.