Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(eslint-plugin): Migrate plugin to ts#120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JamesHenry merged 97 commits intomasterfrommigrate-plugin-to-ts
Feb 11, 2019
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
97 commits
Select commitHold shift + click to select a range
37dd878
rename files and start migration
bradzacherJan 21, 2019
c651723
start converting rules
bradzacherJan 22, 2019
1714d3b
first pass type conversion done
bradzacherJan 22, 2019
bcb3288
es6 exports
bradzacherJan 22, 2019
5e68332
correct tooling paths
bradzacherJan 22, 2019
bbc841a
fix update-recommended script
bradzacherJan 22, 2019
0d3e8ff
add missing manual module typing files
bradzacherJan 22, 2019
d4254f5
address some review comments
bradzacherJan 22, 2019
ee56d42
Merge master into migrate-plugin-to-ts
bradzacherJan 24, 2019
e44fba5
convert tests to TS, move folders, fix bugs
bradzacherJan 24, 2019
fd3fc9d
started adding type defs for TSEstree
bradzacherJan 25, 2019
9bfbb86
more types
bradzacherJan 25, 2019
a47e536
chore(ts-estree): draft of estree structure (replacement for ESTreeNo…
armano2Jan 26, 2019
1e78ac5
more types
bradzacherJan 26, 2019
f5d15fa
Finished adding types
bradzacherJan 30, 2019
26e7275
Filled out unions
bradzacherJan 30, 2019
1df6084
removed types auto generated by armano
bradzacherJan 30, 2019
25579ad
Fix some incorrect typings
bradzacherJan 30, 2019
6d71be4
start strictly typing rules
bradzacherJan 30, 2019
a690933
fix incorrect type for TSTypeRef
bradzacherJan 31, 2019
9796d0f
find+replace remove create(context: Rule.RuleContext)
bradzacherJan 31, 2019
4f8a9d1
Bring SourceCode type internally
bradzacherJan 31, 2019
b76a2d7
adjacent-overload-signatures
bradzacherJan 31, 2019
5826ca2
array-type
bradzacherJan 31, 2019
e18ad83
ban-types
bradzacherJan 31, 2019
c5875f6
move the eslint retyping to a fake module
bradzacherJan 31, 2019
8f2e7e5
add back tests accidentally deleted from adjacent-overload-sigs
bradzacherJan 31, 2019
b08b70a
camelcase
bradzacherJan 31, 2019
6f33e82
tweak generics to be stricter and more ergonomic
bradzacherJan 31, 2019
99f14a1
rename test files and retype RuleTester
bradzacherFeb 1, 2019
e8fc817
class-name-casing
bradzacherFeb 1, 2019
1ab295c
explicit-function-return-type
bradzacherFeb 1, 2019
35ab1bb
explicit-member-accessibility
bradzacherFeb 1, 2019
64ca20b
generic-type-naming
bradzacherFeb 1, 2019
14c0568
indent
bradzacherFeb 1, 2019
0f9b863
add comment to ts-estree types
bradzacherFeb 1, 2019
f35c261
switch from npmignore to package.json files
bradzacherFeb 1, 2019
c49d7e8
interface-name-prefix
bradzacherFeb 1, 2019
334c9b9
Switch to export default rules because it's nicer from a typescript s…
bradzacherFeb 1, 2019
67c2ded
fix config so the test files get the proper types from src
bradzacherFeb 1, 2019
9eb59cb
member-delimiter-style
bradzacherFeb 1, 2019
393204f
revert typescript version bump
bradzacherFeb 2, 2019
7ce246f
review fixes 1/n
bradzacherFeb 2, 2019
f991152
review fixes 2/2
bradzacherFeb 2, 2019
db338a3
member-naming
bradzacherFeb 4, 2019
be34387
member-ordering
bradzacherFeb 4, 2019
5d1165e
review fixes
bradzacherFeb 4, 2019
6ef013a
no-angle-bracket-type-assertion
bradzacherFeb 4, 2019
8309b5d
no-array-constructor
bradzacherFeb 4, 2019
4252c4a
no-empty-interface
bradzacherFeb 4, 2019
efb0e9b
no-explicit-any
bradzacherFeb 4, 2019
22ab757
no-extraneous-class
bradzacherFeb 4, 2019
5ef1e40
no-inferrable-types
bradzacherFeb 4, 2019
616e3a5
no-misused-new
bradzacherFeb 4, 2019
cbd7396
Merge master into migrate-plugin-to-ts
bradzacherFeb 5, 2019
7f36b4b
fix new tests + debug config
bradzacherFeb 5, 2019
2a7fc49
no-namespace
bradzacherFeb 5, 2019
3ae13c6
add types for the eslint modules used in eslint-rules tests
bradzacherFeb 5, 2019
90c9dde
no-non-null-assertion
bradzacherFeb 5, 2019
5c95e0e
no-object-literal-type-assertion
bradzacherFeb 5, 2019
3a8599c
no-parameter-properties
bradzacherFeb 5, 2019
0f4253a
no-this-alias
bradzacherFeb 5, 2019
48cb5a1
no-triple-slash-reference
bradzacherFeb 5, 2019
077994a
no-type-alias
bradzacherFeb 5, 2019
0634149
no-unused-vars
bradzacherFeb 5, 2019
0d3b2b8
no-use-before-define
bradzacherFeb 5, 2019
d24d61d
no-useless-constructor
bradzacherFeb 5, 2019
ecc9582
no-var-requires
bradzacherFeb 5, 2019
55542a2
prefer-interface
bradzacherFeb 5, 2019
4e0136d
prefer-namespace-keyword
bradzacherFeb 5, 2019
50dda72
restrict-plus-operands
bradzacherFeb 5, 2019
f6527dd
type-annotation-spacing
bradzacherFeb 5, 2019
49feb83
fixed up tests and build
bradzacherFeb 5, 2019
6ec6b5f
fix build error
bradzacherFeb 5, 2019
bf31055
add typecheck command and fix errors
bradzacherFeb 5, 2019
a294ea9
move tsestree-utils into utils
bradzacherFeb 6, 2019
a49264c
split utils into separate files to reduce overall file size
bradzacherFeb 6, 2019
46dd1e5
add a createRule helper function
bradzacherFeb 6, 2019
265a6c1
remove a number of inconsistent/useless comments
bradzacherFeb 6, 2019
419ccde
move parser ambient typings to fix the build
bradzacherFeb 6, 2019
0ac7c7f
Fix up some raw strings instead of enum usage
bradzacherFeb 6, 2019
46613cc
ran yarn format
bradzacherFeb 6, 2019
ca20023
remove temporary isolated modules in tests
bradzacherFeb 6, 2019
27c6eba
Merge branch 'master' into migrate-plugin-to-ts
bradzacherFeb 6, 2019
ed6ed5e
review fixes
bradzacherFeb 7, 2019
ca5836e
disable most eslint-plugin-eslint-plugin rules as they no longer are …
bradzacherFeb 7, 2019
79fe2b7
duplicated logic in no-extraneous-class
bradzacherFeb 7, 2019
7d3fac0
Merge branch 'master' into migrate-plugin-to-ts
bradzacherFeb 7, 2019
5f6c1ed
fix types on promise-function-async
bradzacherFeb 7, 2019
4158deb
Merge branch 'master' into migrate-plugin-to-ts
bradzacherFeb 9, 2019
2f6ff83
rename the base tsconfig file to prevent errors in visual studio (not…
bradzacherFeb 9, 2019
917a9f1
fix build
bradzacherFeb 10, 2019
cb359d3
review
bradzacherFeb 10, 2019
c652486
switch RuleTester to a non-default export
bradzacherFeb 10, 2019
51c7635
review fixes pt 1
bradzacherFeb 10, 2019
5c8ad1a
add removed type checks back into tests
bradzacherFeb 10, 2019
3384ed1
barrel up ts-estree
bradzacherFeb 10, 2019
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
19 changes: 3 additions & 16 deletions.eslintrc.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,7 +30,7 @@
{
"files": [
"packages/eslint-plugin-tslint/tests/**/*.ts",
"packages/eslint-plugin/tests/**/*.js",
"packages/eslint-plugin/tests/**/*.test.ts",
"packages/parser/tests/**/*.ts",
"packages/typescript-estree/tests/**/*.ts"
],
Expand All@@ -53,22 +53,9 @@
}
},
{
"files": ["packages/eslint-plugin/**/*.js"],
"files": ["packages/eslint-plugin/test/**/*.ts"],
"rules": {
"eslint-plugin/fixer-return": "error",
"eslint-plugin/no-identical-tests": "error",
"eslint-plugin/no-missing-placeholders": "error",
"eslint-plugin/no-unused-placeholders": "error",
"eslint-plugin/no-useless-token-range": "error",
"eslint-plugin/require-meta-fixable": "error",
"eslint-plugin/prefer-placeholders": "error",
"eslint-plugin/prefer-replace-text": "error",
"eslint-plugin/no-deprecated-report-api": "error",
"eslint-plugin/report-message-format": ["error", "^[A-Z'{].*[\\.}]$"],
"eslint-plugin/no-deprecated-context-methods": "error",
"eslint-plugin/prefer-output-null": "error",
"eslint-plugin/test-case-shorthand-strings": "error",
"eslint-plugin/require-meta-type": "error"
"eslint-plugin/no-identical-tests": "error"
}
}
]
Expand Down
3 changes: 0 additions & 3 deletions.gitignore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -36,9 +36,6 @@ build/Release
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

Expand Down
5 changes: 3 additions & 2 deletions.vscode/launch.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,9 +11,10 @@
"cwd": "${workspaceFolder}/packages/eslint-plugin/",
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
"args": [
"--colors",
"tests/lib/rules/${fileBasename}"
"--runInBand",
"tests/rules/${fileBasenameNoExtension}"
],
"sourceMaps": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
Expand Down
6 changes: 6 additions & 0 deletionsazure-pipelines.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,6 +17,12 @@ jobs:
# bootstrap
yarn --ignore-engines --frozen-lockfile

- script: |
# Note that this command *also* typechecks tests/tools,
# whereas the build only checks src files
yarn typecheck
displayName: 'Typecheck all packages'

- script: |
yarn check-format
displayName: 'Check code formatting'
Expand Down
3 changes: 2 additions & 1 deletionpackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@
"contributors": [
"James Henry <typescript-eslint@jameshenry.blog>",
"Nicholas C. Zakas",
"Brad Zacher",
"Brad Zacher <brad.zacher@gmail.com>",
"armano2",
"Jed Fox"
],
Expand All@@ -21,6 +21,7 @@
"test": "lerna run test --parallel",
"build": "lerna run build",
"clean": "lerna clean && lerna run clean",
"typecheck": "lerna run typecheck",
"lint": "eslint . --ext .js,.ts",
"lint-fix": "eslint . --ext .js,.ts --fix",
"cz": "git-cz",
Expand Down
5 changes: 3 additions & 2 deletionspackages/eslint-plugin-tslint/package.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,8 +21,9 @@
"scripts": {
"test": "jest --coverage",
"prebuild": "npm run clean",
"build": "tsc",
"clean": "rimraf dist/"
"build": "tsc -p tsconfig.build.json",
"clean": "rimraf dist/",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"lodash.memoize": "^4.1.2"
Expand Down
7 changes: 7 additions & 0 deletionspackages/eslint-plugin-tslint/tsconfig.build.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": ["src"]
}
9 changes: 3 additions & 6 deletionspackages/eslint-plugin-tslint/tsconfig.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"declaration": true,
"outDir": "./dist"
},
"include": ["src"]
"extends": "./tsconfig.build.json",
"include": ["src", "tests"],
"exclude": ["tests/test-project", "tests/test-tslint-rules-directory"]
}
6 changes: 0 additions & 6 deletionspackages/eslint-plugin/.npmignore
View file
Open in desktop

This file was deleted.

4 changes: 2 additions & 2 deletionspackages/eslint-plugin/jest.config.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,9 +5,9 @@ module.exports = {
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
testRegex: './tests/lib/.+\\.js$',
testRegex: './tests/.+\\.test\\.ts$',
collectCoverage: false,
collectCoverageFrom: ['lib/**/*.{js,jsx,ts,tsx}'],
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
coverageReporters: ['text-summary', 'lcov']
};
25 changes: 0 additions & 25 deletionspackages/eslint-plugin/lib/index.js
View file
Open in desktop

This file was deleted.

138 changes: 0 additions & 138 deletionspackages/eslint-plugin/lib/rules/adjacent-overload-signatures.js
View file
Open in desktop

This file was deleted.

96 changes: 0 additions & 96 deletionspackages/eslint-plugin/lib/rules/class-name-casing.js
View file
Open in desktop

This file was deleted.

Loading

[8]ページ先頭

©2009-2025 Movatter.jp