Remove eslint:fix
Not very useful now rules are stable. Change-Id: Iafc8a393449bdd1909385fb14d051b11255f7cca
This commit is contained in:
12
Gruntfile.js
12
Gruntfile.js
@@ -1,4 +1,4 @@
|
|||||||
/* eslint-env node */
|
/* eslint-env node, es6 */
|
||||||
module.exports = function ( grunt ) {
|
module.exports = function ( grunt ) {
|
||||||
var conf = grunt.file.readJSON( 'extension.json' );
|
var conf = grunt.file.readJSON( 'extension.json' );
|
||||||
|
|
||||||
@@ -9,13 +9,7 @@ module.exports = function ( grunt ) {
|
|||||||
|
|
||||||
grunt.initConfig( {
|
grunt.initConfig( {
|
||||||
eslint: {
|
eslint: {
|
||||||
fix: {
|
all: [
|
||||||
options: {
|
|
||||||
fix: true
|
|
||||||
},
|
|
||||||
src: '<%= eslint.main %>'
|
|
||||||
},
|
|
||||||
main: [
|
|
||||||
'**/*.js',
|
'**/*.js',
|
||||||
'!lib/**',
|
'!lib/**',
|
||||||
'!node_modules/**',
|
'!node_modules/**',
|
||||||
@@ -45,6 +39,6 @@ module.exports = function ( grunt ) {
|
|||||||
banana: conf.MessagesDirs
|
banana: conf.MessagesDirs
|
||||||
} );
|
} );
|
||||||
|
|
||||||
grunt.registerTask( 'test', [ 'eslint:main', 'stylelint', 'jsonlint', 'banana' ] );
|
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'jsonlint', 'banana' ] );
|
||||||
grunt.registerTask( 'default', 'test' );
|
grunt.registerTask( 'default', 'test' );
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user