Ape Framework ESLint configuration.
NPM package: @apeframework/eslint.
GitHub repository: MattSyms/apeframework-eslint.
yarn add @apeframework/eslint --dev
Node configuration:
import base from '@apeframework/eslint/base'
import typescript from '@apeframework/eslint/typescript'
const config = [
base(),
{
files: ['*.ts', '**/*.ts'],
...typescript(),
},
]
export {
config as default,
}
Browser configuration:
import base from '@apeframework/eslint/base'
import typescript from '@apeframework/eslint/typescript'
import vue from '@apeframework/eslint/vue'
const config = [
base('browser'),
{
files: ['*.ts', '**/*.ts'],
...typescript('browser'),
},
{
files: ['*.vue', '**/*.vue'],
...vue,
},
]
export {
config as default,
}
Install dependencies:
yarn
Update dependencies:
yarn update
Analyze rules:
yarn analyze
Compile:
yarn compile
Lint:
yarn lint
Tag stable release:
git tag v<major>.<minor>.<patch>
Tag dev release:
git tag v0.0.0-dev.<number>
Push tags:
git push --tags