Skip to content

Commit ee68c28

Browse files
committed
ci: use ESLint for linting, instead of XO (which uses ESLint internally)
The main reasion is to support linting in an Neovim environment, which needs to be able to call ESLint directly. See also the https://github.com/vidavidorra/eslint-config project which exposes the ESLint configuration, while still getting the configuration and all rules from XO.
1 parent cdca1bf commit ee68c28

5 files changed

Lines changed: 182 additions & 149 deletions

File tree

.github/lint-staged.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
'*.{ts,tsx,js,jsx}': ['xo --fix', () => 'ava'],
2+
'*.{ts,tsx,js,jsx}': ['eslint --fix', () => 'ava'],
33
'*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}':
44
'prettier --write',
55
};

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Please [create an issue](https://github.com/vidavidorra/commitlint-plugin-functi
6363
Refer to the [contributing guide](https://github.com/vidavidorra/.github/blob/main/CONTRIBUTING.md) for detailed information about other contributions, like pull requests.
6464

6565
[![Conventional Commits: 1.0.0](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow?style=flat-square)](https://conventionalcommits.org)
66+
[![Linter](https://img.shields.io/badge/Linter-ESLint-4B32C3?logo=eslint&style=flat-square)](https://eslint.org/)
6667
[![XO code style](https://shields.io/badge/code_style-5ed9c7?logo=xo&labelColor=gray&style=flat-square)](https://github.com/xojs/xo)
6768
[![Code style](https://img.shields.io/badge/code_style-Prettier-ff69b4?logo=prettier&style=flat-square)](https://github.com/prettier/prettier)
6869

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {default} from '@vidavidorra/eslint-config';

0 commit comments

Comments
 (0)