mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
28 lines
673 B
JavaScript
28 lines
673 B
JavaScript
import {safeAlign} from 'eslint-plugin-putout';
|
|
import {defineConfig} from 'eslint/config';
|
|
import globals from 'globals';
|
|
import {matchToFlat} from '@putout/eslint-flat';
|
|
|
|
export const match = {
|
|
'bin/release.js': {
|
|
'no-console': 'off',
|
|
'n/hashbang': 'off',
|
|
},
|
|
'client/dom/index.*': {
|
|
'no-multi-spaces': 'off',
|
|
},
|
|
};
|
|
export default defineConfig([
|
|
safeAlign, {
|
|
ignores: ['**/fixture'],
|
|
rules: {
|
|
'key-spacing': 'off',
|
|
},
|
|
}, {
|
|
files: ['{client,common,static}/**/*.js'],
|
|
languageOptions: {
|
|
globals: globals.browser,
|
|
},
|
|
},
|
|
...matchToFlat(match),
|
|
]);
|