Migration from v1 to v2
Starting v2 onwards, the linting rules for javascript and react have been split to purge out any unnecessary rules when using this config in a standalone nodejs application.
For usage in a nodejs application, use only the js
eslint configuration of this package.
module.exports = {
- extends: ['@nish1896']
+ extends: ['@nish1896/eslint-config/js']
}
React or Vite applications would need both the js
and react
config import of this package.
module.exports = {
- extends: ['@nish1896']
+ extends: ['@nish1896/eslint-config/js', '@nish1896/eslint-config/react']
}
NextJS applications would need both the js
and next
config import of this package. The next
import is available from v2.1.0 and above.
module.exports = {
- extends: ['@nish1896']
+ extends: ['@nish1896/eslint-config/js', '@nish1896/eslint-config/next']
}