Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions etc/eslint/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

// ESLint plugins:
var plugins = [
'@stylistic/ts',
'jsdoc',
'n',
'stdlib',
Expand Down
16 changes: 8 additions & 8 deletions etc/eslint/rules/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ rules[ '@typescript-eslint/ban-ts-comment' ] = 'off';
* type foo = {};
* type bar = object;
*/
rules[ '@typescript-eslint/ban-types' ] = 'off';
rules[ '@typescript-eslint/no-restricted-types' ] = 'off';

/**
* Enforces the use of consistent type assertions.
Expand Down Expand Up @@ -286,7 +286,7 @@ rules[ '@typescript-eslint/explicit-module-boundary-types' ] = 'error';
* return true;
* }
*/
rules[ '@typescript-eslint/indent' ] = [ 'error', 'tab' ];
rules[ '@stylistic/ts/indent' ] = [ 'error', 'tab' ];

/**
* Enforces a specific member delimiter style in interfaces and type literals.
Expand All @@ -310,7 +310,7 @@ rules[ '@typescript-eslint/indent' ] = [ 'error', 'tab' ];
* age: number;
* }
*/
rules[ '@typescript-eslint/member-delimiter-style' ] = [
rules[ '@stylistic/ts/member-delimiter-style' ] = [
'error',
{
'multiline': {
Expand Down Expand Up @@ -882,7 +882,7 @@ rules[ '@typescript-eslint/promise-function-async' ] = 'off';
* const good = 'good';
* const goodEscape = "good's";
*/
rules[ '@typescript-eslint/quotes' ] = [
rules[ '@stylistic/ts/quotes' ] = [
'error',
'single',
{
Expand Down Expand Up @@ -946,7 +946,7 @@ rules[ '@typescript-eslint/restrict-plus-operands' ] = 'error';
* // Good...
* const good = 'semi';
*/
rules[ '@typescript-eslint/semi' ] = [ 'error', 'always' ];
rules[ '@stylistic/ts/semi' ] = [ 'error', 'always' ];

/**
* Disables the rule for strict boolean expressions.
Expand Down Expand Up @@ -1004,7 +1004,7 @@ rules[ '@typescript-eslint/triple-slash-reference' ] = [
* // Good...
* let good: number;
*/
rules[ '@typescript-eslint/type-annotation-spacing' ] = 'error';
rules[ '@stylistic/ts/type-annotation-spacing' ] = 'error';

/**
* Requires type annotations to exist.
Expand Down Expand Up @@ -2611,13 +2611,13 @@ rules[ 'radix' ] = 'error';
/**
* Enforces consistent spacing before function parentheses.
*
* @name @typescript-eslint/space-before-function-paren
* @name @stylistic/ts/space-before-function-paren
* @memberof rules
* @type {Array}
* @default [ 'error', { 'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always' } ]
* @see [space-before-function-paren]{@link https://typescript-eslint.io/rules/space-before-function-paren}
*/
rules[ '@typescript-eslint/space-before-function-paren' ] = [
rules[ '@stylistic/ts/space-before-function-paren' ] = [
'error',
{
'anonymous': 'always',
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@
"@conventional-commits/parser": "^0.4.1",
"@kaciras/deasync": "^1.0.1",
"@types/node": "^13.9.0",
"@typescript-eslint/parser": "^6.9.1",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^8.57.0",
"@typescript-eslint/eslint-plugin": "^8.57.0",
"ajv": "^5.2.2",
"browser-pack-flat": "^3.0.0",
"browserify": "^17.0.0",
Expand All @@ -139,6 +139,7 @@
"doctrine": "^3.0.0",
"editorconfig-checker": "^6.0.0",
"envify": "^4.0.0",
"@stylistic/eslint-plugin-ts": "^2.13.0",
"eslint": "^8.57.0",
"eslint-plugin-n": "^17.17.0",
"eslint-plugin-expect-type": "^0.2.3",
Expand Down Expand Up @@ -247,7 +248,7 @@
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
"to-vfile": "^6.0.0",
"typedoc": "git+https://github.com/kgryte/typedoc.git#0.16.11-patch",
"typescript": "4.3.5",
"typescript": "4.9.5",
"uglify-js": "^3.17.4",
"uglifyify": "^5.0.0",
"unified-lint-rule": "^1.0.1",
Expand Down
Loading