mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-03 21:40:28 -05:00
48c2ba28e7
* chore: replace dtslint with eslint-plugin-expect-type * update guide * add lint-staged * rm stale script * modify cli eslint and tsconfigs to support ts migration * separate expect-type files * modifications to tsconfigs to make eslint a little easier * revert workflow.yml * further revision * put tslint config for dtslint back in * ensure false negative case is tested * correct tsconfigs * align dtslint tsconfig with eslint 9 config * consolidate / DRY tsconfigs
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
import { baseConfig, cliOverrides } from '@packages/eslint-config'
|
|
|
|
export default [
|
|
...baseConfig,
|
|
...cliOverrides,
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
rules: {
|
|
'@stylistic/comma-dangle': 'warn',
|
|
'@stylistic/comma-spacing': 'warn',
|
|
'@stylistic/type-generic-spacing': 'warn',
|
|
'@stylistic/quotes': 'warn',
|
|
'@stylistic/arrow-parens': 'warn',
|
|
'@stylistic/no-multi-spaces': 'warn',
|
|
'padding-line-between-statements': 'warn',
|
|
'@stylistic/space-unary-ops': 'warn',
|
|
'@stylistic/member-delimiter-style': 'warn',
|
|
'@stylistic/object-curly-spacing': 'warn',
|
|
'@stylistic/semi': 'warn',
|
|
'@stylistic/space-in-parens': 'warn',
|
|
'@stylistic/space-infix-ops': 'warn',
|
|
'@stylistic/template-tag-spacing': 'warn',
|
|
'no-var': 'warn',
|
|
'@stylistic/space-before-function-paren': ['warn', 'always'],
|
|
},
|
|
},
|
|
{
|
|
ignores: [
|
|
'**/__snapshots__',
|
|
'**/build/**/*',
|
|
'package.json',
|
|
'**/angular/**/*',
|
|
'**/react/**/*',
|
|
'**/vue/**/*',
|
|
'**/svelte/**/*',
|
|
'**/mount-utils/**/*',
|
|
'**/types/{bluebird,chai,chai-jquery,jquery,lodash,minimatch,mocha,sinon,sinon-chai}/**/*',
|
|
'.mocharc.js',
|
|
'**/*.js',
|
|
],
|
|
},
|
|
]
|