@ignit/style-guide
v1.5.0
Published
Shareable style guide
Downloads
225
Readme
Style Guide
NOTE: Requires ESLint 9+
Eslint
Create eslint.config.js
in project root and add the following
import tsParser from '@typescript-eslint/parser'
import ignitStyleGuideCore from '@ignit/style-guide/src/eslint/core.mjs'
// VUE: import ignitStyleGuideVue from '@ignit/style-guide/src/eslint/vue.mjs'
/** @type { import('@types/eslint').} */
export default [
...ignitStyleGuideCore,
{
files: ['**/*.ts', '**/*.js'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: './tsconfig.json'
}
}
}
]
Create .prettierrc.js
in project root and add the following
Prettier
import config from '@ignit/style-guide/src/prettier/index.mjs'
/** @type { import('prettier').Config } */
export default {
...config
}