0.2.1 • Published 9 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
9 months ago
0.2.1
9 months ago
0.2.0
9 months ago
0.1.10
10 months ago
0.1.11
9 months ago
0.1.12
9 months ago
0.1.9
10 months ago
0.1.8
10 months ago
0.1.7
10 months ago
0.1.5
10 months ago
0.1.4
10 months ago
0.1.3
11 months ago
0.1.2
11 months ago
0.1.1
11 months ago
0.1.0
11 months ago
0.0.12
11 months ago
0.0.11
12 months ago
0.0.10
12 months ago
0.0.9
12 months ago
0.0.8
12 months ago
0.0.7
12 months ago
0.0.6
12 months ago
0.0.5
12 months ago
0.0.4
12 months ago
0.0.3
12 months ago
0.0.2
12 months ago
0.0.1
12 months ago