tech: removed js related stuff now that 99% is typescript (#12905)

This commit is contained in:
Torkel Ödegaard
2018-08-13 15:56:11 +02:00
committed by GitHub
parent 9031866caa
commit c521f51780
9 changed files with 28 additions and 485 deletions

View File

@@ -9,8 +9,6 @@ module.exports = function(grunt) {
]);
grunt.registerTask('test', [
'jscs',
'jshint',
'sasslint',
'exec:tslint',
"exec:jest",
@@ -19,8 +17,6 @@ module.exports = function(grunt) {
]);
grunt.registerTask('precommit', [
'jscs',
'jshint',
'sasslint',
'exec:tslint',
'no-only-tests'

View File

@@ -1,22 +0,0 @@
module.exports = function(config) {
return {
src: [
'Gruntfile.js',
'<%= srcDir %>/app/**/*.js',
'<%= srcDir %>/plugin/**/*.js',
'!<%= srcDir %>/app/dashboards/*'
],
options: {
config: ".jscs.json",
},
};
};
/*
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireRightStickedOperators": ["!"],
"requireLeftStickedOperators": [","],
*/

View File

@@ -1,20 +0,0 @@
module.exports = function(config) {
return {
source: {
files: {
src: ['Gruntfile.js', '<%= srcDir %>/app/**/*.js'],
}
},
options: {
jshintrc: true,
reporter: require('jshint-stylish'),
ignores: [
'node_modules/*',
'dist/*',
'sample/*',
'<%= srcDir %>/vendor/*',
'<%= srcDir %>/app/dashboards/*'
]
}
};
};