0.4.1 • Published 7 years ago

counsel-filename-format v0.4.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

counsel-filename-format

add's a counsel.check task that enforces filename conventions in your project!

example

  • create your rule
'use strict'

const FilenameFormatRule = require('counsel-filename-format')
const kebab = require('lodash.kebabcase')

module.exports = new FilenameFormatRule({
  fileFormatExtensions: 'js',
  fileFormatExclude: ['*IGNORE*', '*docs/**/*.blah'], // <== `glob` matchers!
  fileFormatFunction: kebab // <== enforces all files are kebab-cased.  best case :)
})
  • run counsel.check(rules) (per counsel docs)

check will reject, and the process will exit w/ code 1 if unhandled.

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1-0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.1

7 years ago

0.0.29

7 years ago

0.0.28

7 years ago

0.0.26

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago