mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
chore: lint
This commit is contained in:
parent
4acd294bf6
commit
ccf608a52e
3 changed files with 2 additions and 14 deletions
2
.github/workflows/nodejs.yml
vendored
2
.github/workflows/nodejs.yml
vendored
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
- name: Typos
|
||||
run: typos --write-changes
|
||||
- name: Commit fixes
|
||||
uses: EndBug/add-and-commit@v9
|
||||
uses: EndBug/add-and-commit@v10
|
||||
continue-on-error: true
|
||||
with:
|
||||
message: "chore: ${{ env.NAME }}: actions: lint ☘️"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"check-coverage": false,
|
||||
"checkCoverage": false,
|
||||
"all": false,
|
||||
"exclude": [
|
||||
"**/*.spec.js",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import {safeAlign} from 'eslint-plugin-putout';
|
||||
import {defineConfig} from 'eslint/config';
|
||||
import n from 'eslint-plugin-n';
|
||||
import globals from 'globals';
|
||||
import {matchToFlat} from '@putout/eslint-flat';
|
||||
|
||||
|
|
@ -12,23 +11,12 @@ export const match = {
|
|||
'client/dom/index.*': {
|
||||
'no-multi-spaces': 'off',
|
||||
},
|
||||
'{client,static}/**/*.{js,mjs}': {
|
||||
'n/no-extraneous-require': 'off',
|
||||
'n/no-unsupported-features/node-builtins': 'off',
|
||||
},
|
||||
'bin/cloudcmd.js': {
|
||||
'no-console': 'off',
|
||||
},
|
||||
};
|
||||
export default defineConfig([
|
||||
safeAlign, {
|
||||
ignores: ['**/fixture'],
|
||||
rules: {
|
||||
'key-spacing': 'off',
|
||||
'n/prefer-node-protocol': 'error',
|
||||
},
|
||||
plugins: {
|
||||
n,
|
||||
},
|
||||
}, {
|
||||
files: ['{client,common,static}/**/*.js'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue