Project specific linting rules for eslint
npm install eslint eslint-plugin-vibeast --save-devEnable JSX support.
With eslint 2+
{
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
}From v8.21.0, eslint announced a new config system.
In the new system, .eslintrc* is no longer used. eslint.config.js would be the default config file name.
In eslint v8, the legacy system (.eslintrc*) would still be supported, while in eslint v9, only the new system would be supported.
And from v8.23.0, eslint CLI starts to look up eslint.config.js.
So, if your eslint is >=8.23.0, you're 100% ready to use the new config system.
The default export of eslint-plugin-vibeast is a plugin object.
const vibeast = require('eslint-plugin-vibeast');
const globals = require('globals');
module.exports = [
…
{
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
plugins: {
vibeast,
},
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
},
},
rules: {
// ... any rules you want
},
// ... others are omitted for brevity
},
…
];🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.
❌ Deprecated.
| Name | Description | 🔧 | 💡 | ❌ |
|---|---|---|---|---|
| no-object-literal-types | Enforces creating an interface or type for props | 🔧 |
eslint-plugin-vibeast is licensed under the MIT License.