1.0.5 • Published 2 years ago
eslint-config-frontjb v1.0.5
eslint-config-frontjb ✨
🔧 Installation
npm i --save-dev eslint eslint-config-frontjb
# or (if using yarn)
yarn add -D eslint eslint-config-frontjb
:computer: Usage
add the extends to your project's eslintrc config
(.eslintrc.js
or other extensions whichever you use in your project)
⚡ Next.js Projects
make sure eslint-config-next
is installed (as devDependencies
)
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['frontjb/react', 'plugin:@next/next/recommended'],
};
optional:
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: [
'frontjb/react',
'plugin:react/jsx-runtime', // to switch off jsx (import React) warning
'plugin:@next/next/recommended',
],
};
⚛️ React Projects
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['frontjb/react'],
};
🟨 Non React Projects
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: [
'frontjb', // or 'frontjb/bare'
],
};