eslintrcとtsconfigを整理
This commit is contained in:
		
							parent
							
								
									3e2d2e5f6b
								
							
						
					
					
						commit
						320f5fedfb
					
				
					 7 changed files with 75 additions and 24 deletions
				
			
		
							
								
								
									
										20
									
								
								.eslintrc
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								.eslintrc
									
										
									
									
									
								
							|  | @ -3,29 +3,11 @@ | ||||||
| 		"parser": "@typescript-eslint/parser" | 		"parser": "@typescript-eslint/parser" | ||||||
| 	}, | 	}, | ||||||
| 	"extends": [ | 	"extends": [ | ||||||
| 		"eslint:recommended", | 		"eslint:recommended" | ||||||
| 		"plugin:vue/recommended" |  | ||||||
| 	], | 	], | ||||||
| 	"rules": { | 	"rules": { | ||||||
| 		"vue/require-v-for-key": 0, |  | ||||||
| 		"vue/max-attributes-per-line": 0, |  | ||||||
| 		"vue/html-indent": 0, |  | ||||||
| 		"vue/html-self-closing": 0, |  | ||||||
| 		"vue/no-unused-vars": 0, |  | ||||||
| 		"vue/attributes-order": 0, |  | ||||||
| 		"vue/require-prop-types": 0, |  | ||||||
| 		"vue/require-default-prop": 0, |  | ||||||
| 		"vue/html-closing-bracket-spacing": 0, |  | ||||||
| 		"vue/singleline-html-element-content-newline": 0, |  | ||||||
| 		"vue/no-v-html": 0, |  | ||||||
| 		"no-console": 0, | 		"no-console": 0, | ||||||
| 		"no-unused-vars": 0, | 		"no-unused-vars": 0, | ||||||
| 		"no-empty": 0 | 		"no-empty": 0 | ||||||
| 	}, |  | ||||||
| 	"globals": { |  | ||||||
| 		"ENV": true, |  | ||||||
| 		"VERSION": true, |  | ||||||
| 		"API": true, |  | ||||||
| 		"LANGS": true |  | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -14,7 +14,7 @@ const locales: { [x: string]: any } = require('./locales'); | ||||||
| const meta = require('./package.json'); | const meta = require('./package.json'); | ||||||
| 
 | 
 | ||||||
| gulp.task('build:ts', () => { | gulp.task('build:ts', () => { | ||||||
| 	const tsProject = ts.createProject('./tsconfig.json'); | 	const tsProject = ts.createProject('./src/tsconfig.json'); | ||||||
| 
 | 
 | ||||||
| 	return tsProject | 	return tsProject | ||||||
| 		.src() | 		.src() | ||||||
|  |  | ||||||
							
								
								
									
										6
									
								
								src/.eslintrc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								src/.eslintrc
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | { | ||||||
|  | 	"env": { | ||||||
|  | 		"node": true, | ||||||
|  | 		"commonjs": true | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | @ -1,4 +1,24 @@ | ||||||
| { | { | ||||||
|  | 	"env": { | ||||||
|  | 		"node": false, | ||||||
|  | 	}, | ||||||
|  | 	"extends": [ | ||||||
|  | 		"eslint:recommended", | ||||||
|  | 		"plugin:vue/recommended" | ||||||
|  | 	], | ||||||
|  | 	"rules": { | ||||||
|  | 		"vue/require-v-for-key": 0, | ||||||
|  | 		"vue/max-attributes-per-line": 0, | ||||||
|  | 		"vue/html-indent": 0, | ||||||
|  | 		"vue/html-self-closing": 0, | ||||||
|  | 		"vue/no-unused-vars": 0, | ||||||
|  | 		"vue/attributes-order": 0, | ||||||
|  | 		"vue/require-prop-types": 0, | ||||||
|  | 		"vue/require-default-prop": 0, | ||||||
|  | 		"vue/html-closing-bracket-spacing": 0, | ||||||
|  | 		"vue/singleline-html-element-content-newline": 0, | ||||||
|  | 		"vue/no-v-html": 0 | ||||||
|  | 	}, | ||||||
| 	"globals": { | 	"globals": { | ||||||
| 		"_DEV_": false, | 		"_DEV_": false, | ||||||
| 		"_LANGS_": false, | 		"_LANGS_": false, | ||||||
|  |  | ||||||
|  | @ -22,8 +22,8 @@ | ||||||
| 		"resolveJsonModule": true, | 		"resolveJsonModule": true, | ||||||
| 		"isolatedModules": true, | 		"isolatedModules": true, | ||||||
| 		"typeRoots": [ | 		"typeRoots": [ | ||||||
| 			"node_modules/@types", | 			"../node_modules/@types", | ||||||
| 			"src/@types" | 			"./@types" | ||||||
| 		], | 		], | ||||||
| 		"lib": [ | 		"lib": [ | ||||||
| 			"esnext" | 			"esnext" | ||||||
|  | @ -31,9 +31,9 @@ | ||||||
| 	}, | 	}, | ||||||
| 	"compileOnSave": false, | 	"compileOnSave": false, | ||||||
| 	"include": [ | 	"include": [ | ||||||
| 		"./src/**/*.ts" | 		"./**/*.ts" | ||||||
| 	], | 	], | ||||||
| 	"exclude": [ | 	"exclude": [ | ||||||
| 		"./src/client/**/*.ts" | 		"./client/**/*.ts" | ||||||
| 	] | 	] | ||||||
| } | } | ||||||
							
								
								
									
										7
									
								
								test/.eslintrc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								test/.eslintrc
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | ||||||
|  | { | ||||||
|  | 	"env": { | ||||||
|  | 		"node": true, | ||||||
|  | 		"mocha": true, | ||||||
|  | 		"commonjs": true | ||||||
|  | 	} | ||||||
|  | } | ||||||
							
								
								
									
										36
									
								
								test/tsconfig.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								test/tsconfig.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,36 @@ | ||||||
|  | { | ||||||
|  | 	"compilerOptions": { | ||||||
|  | 		"allowJs": true, | ||||||
|  | 		"noEmitOnError": false, | ||||||
|  | 		"noImplicitAny": true, | ||||||
|  | 		"noImplicitReturns": true, | ||||||
|  | 		"noUnusedParameters": false, | ||||||
|  | 		"noUnusedLocals": true, | ||||||
|  | 		"noFallthroughCasesInSwitch": true, | ||||||
|  | 		"declaration": false, | ||||||
|  | 		"sourceMap": true, | ||||||
|  | 		"target": "es2017", | ||||||
|  | 		"module": "commonjs", | ||||||
|  | 		"moduleResolution": "node", | ||||||
|  | 		"removeComments": false, | ||||||
|  | 		"noLib": false, | ||||||
|  | 		"strict": true, | ||||||
|  | 		"strictNullChecks": true, | ||||||
|  | 		"strictPropertyInitialization": false, | ||||||
|  | 		"experimentalDecorators": true, | ||||||
|  | 		"emitDecoratorMetadata": true, | ||||||
|  | 		"resolveJsonModule": true, | ||||||
|  | 		"isolatedModules": true, | ||||||
|  | 		"typeRoots": [ | ||||||
|  | 			"../node_modules/@types", | ||||||
|  | 			"../src/@types" | ||||||
|  | 		], | ||||||
|  | 		"lib": [ | ||||||
|  | 			"esnext" | ||||||
|  | 		] | ||||||
|  | 	}, | ||||||
|  | 	"compileOnSave": false, | ||||||
|  | 	"include": [ | ||||||
|  | 		"./**/*.ts" | ||||||
|  | 	] | ||||||
|  | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue