0.2.1 • Published 11 months ago
@iqrf/eslint-config v0.2.1
@iqrf/eslint-config
Flat ESLint configuration for JavaScript, TypeScript, Vue.js and Vuetify 3.
Features
- ESLint flat configuration
- Languages:
- JavaScript (with JSDoc)
- JSON
- Markdown
- TypeScript
- State managements: - Pinia
- Testing frameworks:
- Cypress
- Vitest
- Vue.js 2 and 3
- vue-i18n
- Vuetify 3
Installation
Requires Node.js and ESLint >= 8.56.0.
npm
npm install --save-dev @iqrf/eslint-config
pnpm
pnpm add --save-dev @iqrf/eslint-config
Usage
Create a eslint.config.mjs
file in the root of your project with the following content:
import { iqrfEslint } from '@iqrf/eslint-config';
export default iqrfEslint(
{
cypress: true,
ignores: ['dist/', 'node_modules/'],
import: true,
jsdoc: true,
markdown: true,
pinia: true,
promise: true,
regExp: true,
typescript: true,
vitest: true,
vue: true,
vueI18n: true,
vuetify: true,
},
[
// Add your custom rules here
],
);
Visual Studio Code
Enable flat config if you are using ESLint < 9.0.0:
{
"eslint.experimental.useFlatConfig": true
}
0.1.13
11 months ago
0.2.1
11 months ago
0.2.0
11 months ago
0.1.10
12 months ago
0.1.11
12 months ago
0.1.12
11 months ago
0.1.9
1 year ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.5
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.12
1 year ago
0.0.11
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago