Closed StewEucen closed 5 months ago
Retake as ESLint Flat Config
See #512
eslint.config.js
import customConfig from 'eslint-config-custom'
export default [ customComfig, { files: [ '/*.js', '*/.cjs', ], rules: { 'no-unused-vars': 'error', semi: 'error', // <---------- 👀 override }, }, { files: [ '/*.js', ], rules: { 'no-undef': 'error', semi: 'warm', // <---------- 👀 override }, }, ]
## Reference * [ESLintのconfigがどのように変わり得るか(flat configとは何か)](https://zenn.dev/makotot/articles/0d9184f3dde858) ## Tasks - [ ] Replace empty rule as ESLint flat config - [ ] Fulfill existing rules to ESLint flat config
Overview
Retake as ESLint Flat Config
See #512
Format
eslint.config.js
export default [ customComfig, { files: [ '/*.js', '*/.cjs', ], rules: { 'no-unused-vars': 'error', semi: 'error', // <---------- 👀 override }, }, { files: [ '/*.js', ], rules: { 'no-undef': 'error', semi: 'warm', // <---------- 👀 override }, }, ]