File tree 4 files changed +21
-4
lines changed
4 files changed +21
-4
lines changed Original file line number Diff line number Diff line change
1
+ // @ts -check
2
+ "use strict" ;
3
+
4
+ /** @type {import('eslint').ESLint.Plugin } */
5
+ module . exports = {
6
+ rules : {
7
+ "vue-sort-components" : require ( "./rules/vue-sort-components" ) ,
8
+ } ,
9
+ configs : {
10
+ recommended : {
11
+ plugins : [ "vue-sort-components" ] ,
12
+ rules : {
13
+ "vue-sort-components/vue-sort-components" : "error" ,
14
+ } ,
15
+ } ,
16
+ } ,
17
+ } ;
File renamed without changes.
Original file line number Diff line number Diff line change 2
2
"name" : " eslint-plugin-vue-sort-components" ,
3
3
"version" : " 1.0.0" ,
4
4
"description" : " A plugin for ESLint to keep order of component names" ,
5
- "main" : " index.js" ,
5
+ "main" : " lib/ index.js" ,
6
6
"scripts" : {
7
7
"format" : " prettier --check ./**/*.js" ,
8
8
"lint" : " eslint ." ,
9
- "test" : " mocha tests/" ,
10
- "test:watch" : " mocha --watch --reporter min tests/"
9
+ "test" : " mocha tests/**/*.js " ,
10
+ "test:watch" : " mocha --watch --reporter min tests/**/*.js "
11
11
},
12
12
"repository" : {
13
13
"type" : " git" ,
Original file line number Diff line number Diff line change 1
1
// @ts -check
2
2
"use strict" ;
3
3
4
- const rule = require ( "../rules/vue-sort-components" ) ;
4
+ const rule = require ( "../../../lib/ rules/vue-sort-components" ) ;
5
5
const RuleTester = require ( "eslint" ) . RuleTester ;
6
6
7
7
const ruleTester = new RuleTester ( ) ;
You can’t perform that action at this time.
0 commit comments