File tree Expand file tree Collapse file tree 4 files changed +21
-4
lines changed Expand file tree Collapse file tree 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 22 "name" : " eslint-plugin-vue-sort-components" ,
33 "version" : " 1.0.0" ,
44 "description" : " A plugin for ESLint to keep order of component names" ,
5- "main" : " index.js" ,
5+ "main" : " lib/ index.js" ,
66 "scripts" : {
77 "format" : " prettier --check ./**/*.js" ,
88 "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 "
1111 },
1212 "repository" : {
1313 "type" : " git" ,
Original file line number Diff line number Diff line change 11// @ts -check
22"use strict" ;
33
4- const rule = require ( "../rules/vue-sort-components" ) ;
4+ const rule = require ( "../../../lib/ rules/vue-sort-components" ) ;
55const RuleTester = require ( "eslint" ) . RuleTester ;
66
77const ruleTester = new RuleTester ( ) ;
You can’t perform that action at this time.
0 commit comments