0.4.1 • Published 8 years ago

counsel-filename-format v0.4.1

Weekly downloads
1
License
ISC
Repository
-
Last release
8 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

8 years ago

0.4.0

8 years ago

0.3.1-0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.4

8 years ago

0.1.1

8 years ago

0.0.29

8 years ago

0.0.28

9 years ago

0.0.26

9 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago