mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TSLint → ESLint (#21006)
* Alphabetized tslint and tsconfig files * Optimized tsconfig files * Optimized editorconfig & prettier config files … to reduce redundancy * Switched to @grafana/tsconfig … and: * de-duped options * removed options with default values * Fixed nasty issue with types for nested slate-react * Replaced TSLint with ESLint * TSLint disables → ESLint disables … also JSHint removals, which haven’t had an affect since it was replaced with TSLint. * Compliances for ESLint, Prettier and TypeScript * Updated lockfile
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = function(grunt) {
|
||||
// prettier-ignore
|
||||
grunt.registerTask('test', [
|
||||
'sasslint',
|
||||
'tslint',
|
||||
'eslint',
|
||||
'typecheck',
|
||||
'exec:jest',
|
||||
'no-only-tests',
|
||||
@@ -19,9 +19,9 @@ module.exports = function(grunt) {
|
||||
]);
|
||||
|
||||
// prettier-ignore
|
||||
grunt.registerTask('tslint', [
|
||||
'newer:exec:tslintPackages',
|
||||
'newer:exec:tslintRoot'
|
||||
grunt.registerTask('eslint', [
|
||||
'newer:exec:eslintPackages',
|
||||
'newer:exec:eslintRoot'
|
||||
]);
|
||||
|
||||
// prettier-ignore
|
||||
|
||||
@@ -2,24 +2,19 @@ module.exports = function(config, grunt) {
|
||||
'use strict';
|
||||
|
||||
return {
|
||||
tslintPackages: {
|
||||
command: 'yarn workspaces run tslint',
|
||||
src: ['packages/**/*.ts*'],
|
||||
eslintPackages: {
|
||||
command: 'yarn packages:lint',
|
||||
},
|
||||
tslintRoot: {
|
||||
command: 'yarn run tslint',
|
||||
src: ['public/app/**/*.ts*'],
|
||||
eslintRoot: {
|
||||
command: 'yarn lint',
|
||||
},
|
||||
typecheckPackages: {
|
||||
command: 'yarn workspaces run typecheck',
|
||||
src: ['packages/**/*.ts*'],
|
||||
command: 'yarn packages:typecheck',
|
||||
},
|
||||
typecheckRoot: {
|
||||
command: 'yarn run typecheck',
|
||||
src: ['public/app/**/*.ts*'],
|
||||
command: 'yarn typecheck',
|
||||
},
|
||||
jest: 'yarn run jest-ci',
|
||||
webpack:
|
||||
'node ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js',
|
||||
jest: 'yarn jest-ci',
|
||||
webpack: 'node ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js',
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user