eslint-plugin-cssxjs
v0.3.0
Published
ESLint plugin for CSSX projects
Readme
eslint-plugin-cssxjs
ESLint plugin with CSSX-specific rules (including Pug support)
Installation
yarn add -D eslint@^9 eslint-plugin-cssxjsUse ESLint v9 with the flat config format. Do not use eslint@latest if it resolves to ESLint v10.
Add cssxjs plugin to your eslint.config.mjs and also specify the processor:
import { defineConfig } from 'eslint/config'
import cssxjs from 'eslint-plugin-cssxjs'
export default defineConfig([
{
files: ['**/*.{js,jsx,ts,tsx}'],
plugins: {
cssxjs
},
processor: 'cssxjs/react-pug'
}
])Usage together with neostandard
import { defineConfig } from 'eslint/config'
import neostandard, { resolveIgnoresFromGitignore } from 'neostandard'
import cssxjs from 'eslint-plugin-cssxjs'
export default defineConfig([
...neostandard({
ignores: resolveIgnoresFromGitignore(),
ts: true
}),
{
plugins: {
cssxjs
},
processor: 'cssxjs/react-pug'
}
])License
MIT
