 ;;;###autoload
 (defun jscs-indent-apply ()
   (interactive)
-  (let ((jscsrc (jscs-indent--read-jscsrc)))
+  (let ((jscsrc (jscs--read-jscsrc)))
     (when jscsrc
       (jscs-indent--apply jscsrc))))
 

	#'jscs-indent--rule-maximum-line-length))

(defun jscs-indent--apply (config)
  (let ((config-list (jscs-indent--config-list config)))
    (dolist (func jscs-indent--rule-functions)
      (let ((tail config-list)
	    done)

  :type 'string
  :group 'jscs)

(defvar jscs--presets-path
  (expand-file-name "../lib/node_modules/jscs/presets"
		    (file-name-directory (executable-find jscs-command))))

(defun jscs--read-jscsrc ()
  (let ((dir (locate-dominating-file default-directory ".jscsrc")))
    (when dir
      (json-read-file (expand-file-name ".jscsrc" dir)))))

(defun jscs--read-preset (name)
  (let ((preset (expand-file-name (concat name ".json") jscs--presets-path)))
    (if (file-readable-p preset)
	(json-read-file preset)
      (error "Preset %s is not found" name))))

(defun jscs--config-list (config)
  (let ((preset (cdr (assq 'preset config))))
    (if (stringp preset)
	(cons config (jscs--config-list (jscs--read-preset preset)))
      (list config))))

(defun jscs-indent--rule-validate-indentation (config)
