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
|
- name: Typos
|
||||||
run: typos --write-changes
|
run: typos --write-changes
|
||||||
- name: Commit fixes
|
- name: Commit fixes
|
||||||
uses: EndBug/add-and-commit@v9
|
uses: EndBug/add-and-commit@v10
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
message: "chore: ${{ env.NAME }}: actions: lint ☘️"
|
message: "chore: ${{ env.NAME }}: actions: lint ☘️"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"check-coverage": false,
|
"checkCoverage": false,
|
||||||
"all": false,
|
"all": false,
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"**/*.spec.js",
|
"**/*.spec.js",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import {safeAlign} from 'eslint-plugin-putout';
|
import {safeAlign} from 'eslint-plugin-putout';
|
||||||
import {defineConfig} from 'eslint/config';
|
import {defineConfig} from 'eslint/config';
|
||||||
import n from 'eslint-plugin-n';
|
|
||||||
import globals from 'globals';
|
import globals from 'globals';
|
||||||
import {matchToFlat} from '@putout/eslint-flat';
|
import {matchToFlat} from '@putout/eslint-flat';
|
||||||
|
|
||||||
|
|
@ -12,23 +11,12 @@ export const match = {
|
||||||
'client/dom/index.*': {
|
'client/dom/index.*': {
|
||||||
'no-multi-spaces': 'off',
|
'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([
|
export default defineConfig([
|
||||||
safeAlign, {
|
safeAlign, {
|
||||||
ignores: ['**/fixture'],
|
ignores: ['**/fixture'],
|
||||||
rules: {
|
rules: {
|
||||||
'key-spacing': 'off',
|
'key-spacing': 'off',
|
||||||
'n/prefer-node-protocol': 'error',
|
|
||||||
},
|
|
||||||
plugins: {
|
|
||||||
n,
|
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
files: ['{client,common,static}/**/*.js'],
|
files: ['{client,common,static}/**/*.js'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue